#ifndef TCPINPUTSTREAM_H
#define TCPINPUTSTREAM_H

#include <winsock2.h>

class TCPInputStream
{
public:
	TCPInputStream(SOCKET socket);
	TCPInputStream(const char *addr, int port);
	~TCPInputStream();
	int read(char buf[], int len);
	void close();
private:
	SOCKET m_socket;
};

#endif
